package com.lagou.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface RegionDao {

    /**
     * 插入操作
     * */
    @Insert("insert into sys_region(region_name,region_code,region_level) VALUES(#{region_name},#{region_code},#{region_level})")
    void insertRegion(@Param("region_name") String region_name, @Param("region_code") String region_code,
                      @Param("region_level") int region_level);

}
